// 数据中心->财务数据
import request from "@/utils/request";

// 核心数据
export function countAcademicDataAPI(data) {
  return request({
    url: "/tStudentCourse/countAcademicData",
    method: "post",
    data: data,
  });
}

// 趋势明细
export function dataTrendsAPI(data) {
  return request({
    url: "/tStudentCourse/dataTrends",
    method: "get",
    params: data,
  });
}

// 业绩归属
export function dataTrendsSaleAPI(data) {
  return request({
    url: "/tStudentCourse/dataTrendsSale",
    method: "get",
    params: data,
  });
}

// echarts统计
export function dataTrendsEChartAPI(data) {
  return request({
    url: "/tStudentCourse/dataTrendsEChart",
    method: "post",
    data: data,
  });
}

// 导出
export function exportDataTrendAPI(data) {
  return request({
    url: "/tStudentCourse/exportdataTrend",
    method: "post",
    data: data,
    responseType: "blob",
    headers: { "Content-Type": "application/json; application/octet-stream" },
  });
}
